<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>
    web2py - refreshing python script on page refresh : Forums : PythonAnywhere
</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Forums : PythonAnywhere">
        <meta name="author" content="PythonAnywhere LLP">
        <meta name="google-site-verification" content="O4UxDrfcHjC44jybs2vajc1GgRkTKCTRgVzeV6I9V14" />

        <!-- Le styles -->
        <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="/static/anywhere/styles/bootstrap_base.css" rel="stylesheet">
        
    
    <link rel="stylesheet" href="/static/anywhere/styles/forums.css" type="text/css" media="screen" charset="utf-8" />

    <link rel="stylesheet" href="/static/pygments/style.css" type="text/css" media="screen" charset="utf-8" />

        <link rel="stylesheet" href="/static/jquery/jquery-ui-1.8.11.custom.css" type="text/css" media="screen" charset="utf-8" />
        
    
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/forums/topic/791/rss" />

        <style type="text/css">
            body {
                height: auto;
            }
        </style>
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Le fav and touch icons -->
        <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
        <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
    </head>

     <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div id="id_internal_nav_bar_container" class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="/"><img id="id_logo" src="/static/anywhere/images/logo-234x35.png" height="35" title="PythonAnywhere logo" alt="PythonAnywhere logo" /></a>
                    <div class="nav-collapse">
                        <ul id="id_header_links" class="nav">
                            <li><a id="id_feedback_link" class='feedback_link' href="">Send feedback</a></li>
                            <li><a id="id_forums_link" href="/forums/">Forums</a></li>
                            <li><a href="/wiki/" id="id_help_link">Help</a></li>
                            <li><a href="http://blog.pythonanywhere.com/" id="id_blog_link">Blog</a></li>
                            
                            
                                <li><a style="font-weight: bold;" href="/pricing/" id="id_pricing_link">Pricing & signup</a></li>
                                <li><a href="/login/?next=/forums/topic/791/" id="id_login_link">Log in</a></li>
                            
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="top-container" id="id_dummy"></div>

        

        
    
    <div class="container">
        <div class="row">
            <div class="span8 offset3">
                <h1>PythonAnywhere Forums</h1>
            </div>
        </div>



    <div class="row">
        <div class="span8 offset3">
            <p>
                <a href="/forums/start_topic/" id="id_start_new_topic">Start a new topic</a> |
                <a href="/forums/">Back to all topics</a> |
                <a href="/forums/topic/791/rss">This topic's RSS</a>
            </p>
        </div>
    </div>
    <div class="row">
        <div class="span8 offset3 topic">
            <h2>web2py - refreshing python script on page refresh</h2>
        </div>
    </div>

    
        <div class="row">
            <div id="id_post_5635" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5635_content_text" class="span8">
                        <p>Hi, I'm very new to python and web2py so possibly not using the correct language to describe what I'm after but here goes...</p>
<p>In my web2py app I have a python module that generates a random quote from a Google spreadsheet (using gspread). I've managed to get so far as displaying the random quote in my web2py app. I've added in an html 'refresh' button to the page, but when I refresh the page the quote stays the same. How do I make the python script run again each time I refresh the page?</p>
<p>I have tried adding 
    session.forget(response)
to the default.py controller but this doesn't seem to have done anything.</p>
<p>I also tried adding
    from gluon.custom_import import track_changes; track_changes(True)
to the db.py model and this doesn't seem to have done anything either.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5635_creator_details">
                            
                                
                            
                            Abbie2020
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5635_created_date">
                            July 25, 2013, 7:41 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5635">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5639" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5639_content_text" class="span8">
                        <p>I'm not quite sure why you need to store the quote in the session at all - surely you can just fetch it and put it in the response page without storing it anywhere? That will ensure it will change every time the page is being refreshed, provided your browser isn't caching it.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5639_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            Cartroo
                            |
                            638
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5639_created_date">
                            July 26, 2013, 10:24 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5639">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5641" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5641_content_text" class="span8">
                        <p>+1 to what Cartroo says, that sounds like the right way to do it -- unless we're missing something...?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5641_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5641_created_date">
                            July 26, 2013, 11:08 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5641">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5650" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5650_content_text" class="span8">
                        <p>I don't know if it's being stored or not. I don't really get how it works! It seems like it's being cached or stored and I want to stop this from happening so that a new quote is shown on page refresh. What code do I put where?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5650_creator_details">
                            
                                
                            
                            Abbie2020
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5650_created_date">
                            July 26, 2013, 5:52 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5650">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5652" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5652_content_text" class="span8">
                        <p>Perhaps it would help if we looked at your code -- could you point us at the URL where the quote appears?  And can I look at the source code in your account?  Or perhaps you could post the code here?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5652_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5652_created_date">
                            July 26, 2013, 5:58 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5652">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5653" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5653_content_text" class="span8">
                        <p>So my module is this:</p>
<div class="codehilite"><pre><span class="kn">import</span> <span class="nn">gspread</span>
<span class="kn">import</span> <span class="nn">random</span>

<span class="n">gc</span> <span class="o">=</span> <span class="n">gspread</span><span class="o">.</span><span class="n">login</span><span class="p">(</span><span class="s">&#39;username&#39;</span><span class="p">,</span><span class="s">&#39;password&#39;</span><span class="p">)</span>
<span class="n">sh</span> <span class="o">=</span> <span class="n">gc</span><span class="o">.</span><span class="n">open_by_key</span><span class="p">(</span><span class="s">&#39;spreadsheet_key&#39;</span><span class="p">)</span>
<span class="n">worksheet</span> <span class="o">=</span> <span class="n">sh</span><span class="o">.</span><span class="n">sheet1</span>

<span class="n">values_list</span> <span class="o">=</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">col_values</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span>
<span class="n">range_end</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">values_list</span><span class="p">)</span>

<span class="n">random_number</span> <span class="o">=</span> <span class="n">random</span><span class="o">.</span><span class="n">randint</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="n">range_end</span><span class="p">)</span>

<span class="k">while</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">cell</span><span class="p">(</span><span class="n">random_number</span><span class="p">,</span> <span class="mi">5</span><span class="p">)</span><span class="o">.</span><span class="n">value</span> <span class="o">!=</span> <span class="s">&quot;yes&quot;</span> <span class="p">:</span>
    <span class="n">random_number</span> <span class="o">=</span> <span class="n">random</span><span class="o">.</span><span class="n">randint</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="n">range_end</span><span class="p">)</span>

<span class="n">who_said_it</span> <span class="o">=</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">cell</span><span class="p">(</span><span class="n">random_number</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span><span class="o">.</span><span class="n">value</span>
<span class="n">about_what</span> <span class="o">=</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">cell</span><span class="p">(</span><span class="n">random_number</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span><span class="o">.</span><span class="n">value</span>
<span class="n">quote</span> <span class="o">=</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">cell</span><span class="p">(</span><span class="n">random_number</span><span class="p">,</span> <span class="mi">4</span><span class="p">)</span><span class="o">.</span><span class="n">value</span>
</pre></div>


<p>Then in default.py controller I have:</p>
<div class="codehilite"><pre><span class="k">def</span> <span class="nf">quote</span><span class="p">():</span>
    <span class="kn">import</span> <span class="nn">quote</span>
    <span class="k">return</span> <span class="nb">dict</span><span class="p">(</span><span class="n">who_said_it</span> <span class="o">=</span> <span class="n">quote</span><span class="o">.</span><span class="n">who_said_it</span><span class="p">,</span> <span class="n">about_what</span> <span class="o">=</span> <span class="n">quote</span><span class="o">.</span><span class="n">about_what</span><span class="p">,</span> <span class="n">quote</span> <span class="o">=</span> <span class="n">quote</span><span class="o">.</span><span class="n">quote</span><span class="p">)</span>
</pre></div>


<p>And in quote.html I'm just showing them using e.g. <code>{{=who_said_it}}</code>.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5653_creator_details">
                            
                                
                            
                            Abbie2020
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5653_created_date">
                            July 26, 2013, 6:54 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5653">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5658" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5658_content_text" class="span8">
                        <p>Okay! So: import checks to see if the module is in sys.modules, and if it is, it returns it. </p>
<p>What that means is that when your webapp gets it's first request, it runs the <code>quote</code> function, imports the module, runs the code in the module, and returns a response. The next time your webapp gets a request it looks at <code>import quote</code>, sees that it has already been imported, and just uses the already imported <code>quote</code> object. </p>
<p>SO! What can you do? Make a function in your <code>quote</code> module that returns a random quote. Something like this. </p>
<div class="codehilite"><pre><span class="k">def</span> <span class="nf">random_quote</span><span class="p">():</span>
    <span class="c"># do all the spreadsheet opening and random number generation stuff. </span>
    <span class="n">quote</span> <span class="o">=</span> <span class="p">{}</span>
    <span class="n">quote</span><span class="p">[</span><span class="s">&#39;who_said_it&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">cell</span><span class="p">(</span><span class="n">random_number</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span><span class="o">.</span><span class="n">value</span>
    <span class="n">quote</span><span class="p">[</span><span class="s">&#39;about_what&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">cell</span><span class="p">(</span><span class="n">random_number</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span><span class="o">.</span><span class="n">value</span>
    <span class="n">quote</span><span class="p">[</span><span class="s">&#39;quote&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">worksheet</span><span class="o">.</span><span class="n">cell</span><span class="p">(</span><span class="n">random_number</span><span class="p">,</span> <span class="mi">4</span><span class="p">)</span><span class="o">.</span><span class="n">value</span>
    <span class="k">return</span> <span class="n">quote</span>
</pre></div>


<p>In your controller</p>
<div class="codehilite"><pre><span class="kn">import</span> <span class="nn">quotes</span>

<span class="k">def</span> <span class="nf">quote</span><span class="p">():</span>
    <span class="k">return</span> <span class="n">quotes</span><span class="o">.</span><span class="n">random_quote</span><span class="p">()</span>
</pre></div>


<p>NB: It's a bad idea to define a module called quote and then import it into a another module with a function called quote! Like really <strong>really</strong> bad. Don't reuse names like that. Weird things will happen. Everything should have it's own name. Giving things good, unique, names is part of the art of programming.  </p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5658_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5658_created_date">
                            July 27, 2013, 8:53 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5658">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5661" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5661_content_text" class="span8">
                        <p>Thanks hansel, I'll give that a try later. Also, thanks for the tip about naming; I did start to think it was a bad idea when I had three different things with the same name...I need people like you that know what they're doing to keep me on the straight and narrow!</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5661_creator_details">
                            
                                
                            
                            Abbie2020
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5661_created_date">
                            July 27, 2013, 2:17 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5661">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5662" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5662_content_text" class="span8">
                        <p>I remember in one of the first Computer Science lectures we had at Cambridge University, over a decade ago now, one of the lecturers was going through writing an example code snippet on the board. He came to a point where he needed a variable and turned to the students and solemnly declared "now comes the hardest problem you'll ever face as a software engineer - picking <em>names</em> for things". It made us all dutifully titter.</p>
<p>It wasn't until I'd been out in the industry for a few years that I realised he was far more right than I'd realised.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5662_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            Cartroo
                            |
                            638
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5662_created_date">
                            July 27, 2013, 3:19 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5662">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5665" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5665_content_text" class="span8">
                        <p><a href="http://martinfowler.com/bliki/TwoHardThings.html">Cache invalidation and naming things</a>...</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5665_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5665_created_date">
                            July 27, 2013, 9:44 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5665">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5674" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5674_content_text" class="span8">
                        <p>Super, it works! Thanks for your help guys :-) I'll work on my naming...</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5674_creator_details">
                            
                                
                            
                            Abbie2020
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5674_created_date">
                            July 28, 2013, 4:02 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5674">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5675" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5675_content_text" class="span8">
                        <p>No problem Abbie, drop us a line anytime if you have any more questions.  </p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5675_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            hansel
                            |
                            435
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5675_created_date">
                            July 28, 2013, 7:48 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/791/#id_post_5675">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    

    




        <div id="id_footer" class="container">

            <footer id="id_copyright_div">
                <p>
                    Copyright &copy; 2013 PythonAnywhere LLP
                    &mdash;
                    <a href="/terms/">Terms</a>
                    &mdash;
                    <a href="/privacy/">Privacy</a><br/>
                    "Python" is a registered trademark of the Python Software Foundation.
                </p>
            </footer>

        </div>

        
        

        <div id="id_feedback_dialog" title="Help us improve" style="display:none">
    <div id="id_feedback_dialog_blurb_big" class="dialog_blurb_big">
        It's always a pleasure to hear from you!
    </div>
    <div id="id_feedback_dialog_blurb_small">
        Ask us a question, or tell us what you love or hate about PythonAnywhere.<br/>
        We'll get back to you over email ASAP.
    </div>
    <textarea id="id_feedback_dialog_text" rows="6"></textarea>
    <input id="id_feedback_dialog_email_address" type="text" class="default_prompt"/>
    <div id="id_feedback_dialog_error" class="pa_hidden">
        Sorry, there was an error connecting to the server. <br/>Please try again in a few moments...
    </div>
    <div class="dialog_buttons">
        <img id="id_feedback_dialog_spinner" src="/static/anywhere/images/spinner-small.gif" />
        <button class="btn btn-primary" id="id_feedback_dialog_ok_button">OK</button>
        <button class="btn" id="id_feedback_dialog_cancel_button">Cancel</button>
    </div>
</div>


        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script type="text/javascript" src="/static/jquery/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="/static/jquery/jquery-ui-1.8.11.custom.min.js"></script>
        <script src="/static/bootstrap/js/bootstrap-transition.js"></script>
        <script src="/static/bootstrap/js/bootstrap-alert.js"></script>
        <script src="/static/bootstrap/js/bootstrap-modal.js"></script>
        <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script>
        <script src="/static/bootstrap/js/bootstrap-scrollspy.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tab.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tooltip.js"></script>
        <script src="/static/bootstrap/js/bootstrap-popover.js"></script>
        <script src="/static/bootstrap/js/bootstrap-button.js"></script>
        <script src="/static/bootstrap/js/bootstrap-collapse.js"></script>
        <script src="/static/bootstrap/js/bootstrap-carousel.js"></script>
        <script src="/static/bootstrap/js/bootstrap-typeahead.js"></script>

        <script type="text/javascript">
            var urls = {};
            var Anywhere = {};
            Anywhere.urls = {};
        </script>
        <script type="text/javascript" src="/static/anywhere/scripts/ajax_utils.js"></script>

        <script type="text/javascript" src="/static/anywhere/scripts/feedback_dialog.js"></script>
        
        <script type="text/javascript">
            $(function() {
                $.extend(
                    urls,
                    {
                        feedback: '/feedback/submit/'
                    }
                );
                
                    Anywhere.FeedbackDialog.Initialise(urls, false);
                
            });
        </script>

        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-18014859-6']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>

        



    </body>
</html>
